<?php
$deputy = $this->ambassadors;
$selectID = "";
if(!empty($deputy)){
foreach ($deputy as $key=>$name) {
    if($key == '0') {
        $selectID = $name['id'];?>
<input type="radio" name="deputylist" checked value="<?php echo $name['id'] ?>" onclick="javascript:Popup.viewDeputy('<?php echo $name['id']?>')" /><?php echo $name['name'] ?><br/>
    <?php }else {?>
<input type="radio" name="deputylist" value="<?php echo $name['id'] ?>" onclick="javascript:Popup.viewDeputy('<?php echo $name['id']?>')" /><?php echo $name['name'] ?><br/>
    <?php }} ?>
<input type='hidden' id='deputyID' value='<?php echo $selectID ?>' />
<?php
}else{?>
<input type='hidden' id='deputyID' value='0' /><font color='red'>没有上级校园大使!</font>
<?php }?>

